mq_connectiontest:mq_connectiontest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3 -I../mqthird/muduo/include
mq_channaltest:mq_channaltest.cpp ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3 -I../mqthird/muduo/include
mq_consumertest:mq_consumer.cpp
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3
mq_routertest:mq_router.cpp
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3
mq_hosttest:mq_hosttest.cpp ../mqcommon/mq_msg.pb.cc
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3 -g
mq_msgtest:mq_msgqueue.cpp ../mqcommon/mq_msg.pb.cc
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3 -g
mq_bindingtest:mq_binding.cpp
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3
mq_queuetest:mq_queue.cpp
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3
mq_exchangetest:mq_exchange.cpp
	g++ -std=c++11 -o $@ $^ -lgtest -lprotobuf -lsqlite3
mq_filetest:mq_file.cpp
	g++ -std=c++11 -o $@ $^ 
.PHONY:clean
clean:
	rm -rf mq_exchangetest mq_filetest mq_queuetest mq_bindingtest \
	mq_msgtest mq_hosttest mq_routertest mq_consumertest mq_channaltest \
	mq_connectiontest